const Koa = require('koa');
const Router = require('koa-router');

const app = new Koa();
const router = new Router();

router.get('/', (ctx, next) => {
  ctx.body = 'hellow dockerfile example';
})

app.use(router.routes()).use(router.allowedMethods());

app.listen(8080, (err) => {
  if (err) {
    console.log('error', error);
  }
  console.log('application is linstening 8080 port...');
});